package com.cpecc.model.wuzi;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cpecc.model.system.Dep;
import com.cpecc.model.system.HuanJie;
import com.cpecc.model.system.User;

@Entity
@Table(name = "DATA_WUZI_YIJIAO")
public class YiJiao implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1493062886831863038L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@Column
	private int liuChengLX;

	@ManyToOne
	@JoinColumn(name="WUZI_ID")
	private WuZi wuZi;

	@ManyToOne
	@JoinColumn(name="YIJIAOR_ID")
	private User yiJiaoR;

	@Column
	private Date shenQingRQ;
	
	@Column(length=64)
	private String yiJiaoYY;

	@ManyToOne
	@JoinColumn(name="JIESHOUDW_ID")
	private Dep jieShouDW;

	@ManyToOne
	@JoinColumn(name="JIESHOUR_ID")
	private User jieShouR;
	
	@ManyToOne
	@JoinColumn(name="HUANJIE_ID")
	private HuanJie huanJie;
	
	@Column
	private int buBan;

	@Column(name = "LIUCHENG_ID")
	private String liuChengId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getLiuChengLX() {
		return liuChengLX;
	}

	public void setLiuChengLX(int liuChengLX) {
		this.liuChengLX = liuChengLX;
	}

	public WuZi getWuZi() {
		return wuZi;
	}

	public void setWuZi(WuZi wuZi) {
		this.wuZi = wuZi;
	}

	public User getYiJiaoR() {
		return yiJiaoR;
	}

	public void setYiJiaoR(User yiJiaoR) {
		this.yiJiaoR = yiJiaoR;
	}

	public Date getShenQingRQ() {
		return shenQingRQ;
	}

	public void setShenQingRQ(Date shenQingRQ) {
		this.shenQingRQ = shenQingRQ;
	}

	public String getYiJiaoYY() {
		return yiJiaoYY;
	}

	public void setYiJiaoYY(String yiJiaoYY) {
		this.yiJiaoYY = yiJiaoYY;
	}

	public Dep getJieShouDW() {
		return jieShouDW;
	}

	public void setJieShouDW(Dep jieShouDW) {
		this.jieShouDW = jieShouDW;
	}

	public User getJieShouR() {
		return jieShouR;
	}

	public void setJieShouR(User jieShouR) {
		this.jieShouR = jieShouR;
	}

	public HuanJie getHuanJie() {
		return huanJie;
	}

	public void setHuanJie(HuanJie huanJie) {
		this.huanJie = huanJie;
	}

	public int getBuBan() {
		return buBan;
	}

	public void setBuBan(int buBan) {
		this.buBan = buBan;
	}

	public String getLiuChengId() {
		return liuChengId;
	}

	public void setLiuChengId(String liuChengId) {
		this.liuChengId = liuChengId;
	}

	public YiJiao(String id, int liuChengLX, WuZi wuZi, User yiJiaoR,
				  Date shenQingRQ, String yiJiaoYY, Dep jieShouDW, User jieShouR,
				  HuanJie huanJie, int buBan) {
		super();
		this.id = id;
		this.liuChengLX = liuChengLX;
		this.wuZi = wuZi;
		this.yiJiaoR = yiJiaoR;
		this.shenQingRQ = shenQingRQ;
		this.yiJiaoYY = yiJiaoYY;
		this.jieShouDW = jieShouDW;
		this.jieShouR = jieShouR;
		this.huanJie = huanJie;
		this.buBan = buBan;
	}

	public YiJiao() {
		super();
	}	
}
